package demo.service.impl;

import demo.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author m0v1
 * @date 2021年09月20日 11:47 下午
 */

/*******************************************************************************************************************
// 问题记录:
// 接口实现类未使用org.apache.dubbo.config.annotation.Service标注,导致消费者调用时报:
// Error creating bean with name 'consumerComponent':
// Injection of @Reference dependencies is failed; nested exception is java.lang.IllegalStateException:
// Failed to check the status of the service demo.service.HelloService.
// No provider available for the service demo.service.HelloService from the url zookeeper://192.168.2.10:2181
*******************************************************************************************************************/

@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        return "hello," + name + " !";
    }
}
